function AjaxGet(url, successFunc) {
    $.ajax({
        url: url,
        type: "GET",
        dataType: "json",
        success: function (result) {
            console.log(result)
            if (result.IsSuccess) {
                successFunc(result.Data);
            }
            else {
                alert(result.Message);
            }
        }
    });
}

function AjaxPost(url, data, successFunc) {
    $.ajax({
        url: url,
        type: "Post",
        data: data,
        dataType: "json",
        success: function (result) {
            console.log(data)
            if (result.IsSuccess) {
                successFunc(result.Data);
            }
            else {
                alert(result.Message);
            }
        }
    });
}